package com.second.mapper;

import com.second.model.pojo.FMessage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FMessageMapper extends JpaRepository<FMessage,Integer> {

    List<FMessage> findAllByUserIdOrderByReplyTimeDesc(Integer userId);
}
